$(function(){
    $('.nav_two>.left>ul>li').click(function(){
        switch($(this).index()){
            case 0 :
            localStorage.setItem('adress','../member/MemberManagement.html')
            break;
            case 1 :
            localStorage.setItem('adress','../member/mailbox.html')
            break;
            case 3 :
            localStorage.setItem('adress','../member/Upgrade.html')
            break;
            case 4 :
            localStorage.setItem('adress','../member/Recommend.html')
            break;
            case 5 :
            localStorage.setItem('adress','../member/commission-install.html')
            break;
        }
    })
    $('.nav_two>.left>ul>li>ul>li').click(function(){
        switch($(this).index()){
            case 0 :
            localStorage.setItem('adress','../member/DealImport.html')
            break;
            case 1 :
            localStorage.setItem('adress','../member/record .html')
            break;
        }
    })
  if($("div").hasClass("middle")){
    $(".button").height($(".right").height()-$(".top").height()-$(".middle").height()-40);
    $(window).resize(function () {
      $(".button").height($(".right").height()-$(".top").height()-$(".middle").height()-40);
    });
  }else{
    $(".button").height($(".right").height()-$(".top").height()-40);
    $(window).resize(function () {
      $(".button").height($(".right").height()-$(".top").height()-40);
    });
  }
})
